package com.iqismart.shorturl.controller.ui;

import com.iqismart.shorturl.config.WebSite;
import com.iqismart.shorturl.service.ConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @Description
 * @Auther sty
 * @createTime 2020-03-05 17:40
 */
@Controller
@RequestMapping("ui")
public class FooterController {

    @Autowired
    private WebSite webSite;
    @Autowired
    private ConfigService configService;

    @GetMapping("footer.html")
    public ModelAndView footer(){
        return new ModelAndView("footer","vo",configService.get());
    }
}
